Just to make it clear in case anyone is doing it by pin numbers instead of conductor wires, it is pin 1 and pin 14 that need to be swapped to invert x