set preload to correct value