flag crash fixed