Fix locking bug