fix user deleting bug