fix bug to ensure user deletion