Fix location writing.