Fixed a coule bugs with auth/deletion