fixed destroy flash error