fixes in extractgizapatterns_heur