In xh connectors pin numbers are wrong. They are mirrored.
If you are using this library for production please beware that there is lots of problems in pinouts. Check every thing before send it to the pcb-factory. For example, last year I used this lib to design a HMI board and after soldering I found out that the footprint of SSD1963 is wrong! I loose lots of money because I had to through out 50 PCBs!