fixed the x coordinate bugs