Fix preloaded script references