fixed change dir bug