trying to fix a bug in user deletion