Fix script path bug