Fix lib loading