fix minor variable renaming bug in converter