fix the lock condition