Fix crash when deleting user