fixed bug in block lock