fix script path bug