Fix bug of None Lock