Fix incorrect flash usage in destroy action