[FIX] enum to output file buffer error