fix creation of the COORD keyword

basically, the loop went one index too little...
Merge pull request #235 from andlaus/fix_coord_kw

fix creation of the COORD keyword