fixed incorrect logic when banning a user