fixed library autoload