fix up y coordinate issue