fix for not breaking search loop when a valid feature is found