Fix preloading bug