fix mystic end of file