Fix duplicate variable name