Fix title renaming bug