Fix failure in Projection.write
Merge pull request #93 from astrofrog/fix-projection-write

Fix failure in Projection.write