fix library autoload