Fix bug that could cause a lock