fix can change the value of a dir bug