avoided NPE when no headers but some captures are defined