fixed small bug in core js when preload method is missing