add missing line in preload function