xScale and yScale repaired