fixed loadAsset in script.cpp