fix preloading error