Fix duplicate variable