Fix variable defined twice.