Fix tile quads being generated in the wrong order