An employee works on a Telsa Motors Model S sedan as it makes its way along an assembly line at company's assembly plant in Fremont, California.

Tesla delivered just more than 22,000 vehicles in the second quarter, down from 25,000 in the previous quarter.

The electric car maker blamed a severe production shortfall of 100 kilowatt-hour battery packs. The company said production average 40 percent below demand, until early June. But once the issue was resolved, Tesla said production speed rebounded.

Despite the slowdown, deliveries were up 53 percent from the same period a year earlier.

Of the over 22,000 vehicles delivered, 12,000 were Model S cars and just over 10,000 were Model X vehicles. Tesla produced 25,708 vehicles in the quarter, bringing production for the first half of the year to 51,126.