fixes error during user delete and ban