bug fix for locks