fixed error in write ufo and in flatfont rendering