fixes renaming bug