The driver of a Tesla Model 3 in Sweden has been lucky to avoid slamming into a moose while driving at night along a desolate highway.

This dashcam footage from the electric sedan shows it traveling along the highway with the automatic high beams enabled. Roughly 11 seconds into the video, the massive moose comes into view and can be seen walking across the opposite side of the road and heading towards the driver.

Suddenly, the automatic high beams of the Tesla switch off and for a second, the moose disappears into the darkness. When the high beams turn back on, the moose can be seen jumping over the center divider and running directly into the path of the Model 3. Fortunately, the driver of the Tesla was able to slam on the brakes and swerve to the right to avoid hitting it.

Read Also: Tesla Selling 2021 Model 3 Demo Cars With Degraded Four Year Old Battery Packs

The video isn’t just interesting because of the near-miss but because of how the car’s automatic high beams were functioning. Perhaps because of the reflectors found on the highway, the system may have thought there was a car approaching, hence why the high beams would switch off momentarily. Of course, the Model 3’s automatic high beams can be disabled through the car’s infotainment screen but it is interesting to see just how easily the system can be fooled.

It’s worth mentioning that this isn’t just an issue with the Model 3. Many other new cars with automatic high beams fail to work as advertised and are often too late to react to oncoming cars.