Fixed the edit and delete bug for deleted accounts