fix current dir bug