Fix swapped XY and E ref pins