fixed the renaming bug introduced by e956c7e