fix core dump when no collrec