fix library precedence