fixed change dir issue