Fixed preloading bug