fix preloading issue