fixed a few bugs in nbrs modeling