fix a bug that may do a error rename