bug fix @ SXFMWriter