Fixing not being able to delete emails before refreshing