Fixing a bug with attempting to delete a temporary tag