fixed renaming bug