Fix tile packing.