Fix inverse y coordinate transformation