fixed bug in nv.js