fixed flash alert for destroy