fix preload script