LOS ANGELES (AP) — Tesla is recalling more than 300,000 vehicles in the U.S. because a software glitch can make taillights go off intermittently, increasing the risk of a collision. Tesla says in documents posted Saturday by the U.S. National Highway Traffic Safety Administration that the glitch may affect one or both taillights on certain Model 3 and Model Y vehicles. Brake lamps, backup lamps and turn signal lamps are not affected by the software problem, the company said. The automaker said it is releasing an online software update that will fix the problem. The recall covers certain 2020 to 2023 Model Y SUVs and 2023 Model 3 sedans. That amounts to potentially 321,628 vehicles.