fix preloader bug