fix auto rename bug