Fixed crash when deleting account