I've only noticed this when I tested video recording in a moving vehicle. If the camera was not completely stable or if it was raining, at times it would focus on the windshield instead. Also, it might be obvious but make sure you're not tapping and holding to focus since that locks the autofocus function.