fix lib order to fix undefined refence