Fix how library file is loaded