Fixes error is xScale