Fix badmatch with variable name duplication

Silly bug is silly.