fixed preload bug