fix workpath problem