Fix failure in Projection.write