fix empty field bug in ContextCollector