fixed a bug caused by user deleting their account