The electric automaker has apologized and said it will fix the issue for affected vehicles.