write_graphite: silly mistakes