Correct X dir and endstop pos