fix workingdir bug