fixed bug if no matching flares found