fix undefined lib error