fix some script error