fix preload script
fix library preloading