fix the lock issue in users