fixed bug after deleting an account