lock block bug fix