Added extra check for the ground profile finder