applied andres' multi-slock fix, thanks for spotting this issue