Correct locking error.