Fix preload script