fixed an issue with sessions when deleting a user