fix errors in nodb