* fixed errors when parse json for script.