fix preloading