bugs in cont NF code