fixes deleting users

fixes #1961