bug fix to line 100, where ncinfo wasn't clear before creating new ncinfo.