Fixed bug in gff output causing header to be printed multiple times