Fixed renaming bug.