Fix quad z coordinate