Fix multiple use of the same variable name with differents types