Fixed issue where loadFunction failed second time.