Fixed error GFF write routine