fixed logic for whether to delete or redirect on cancel

Original logic was backwards.