fix fnt write bug