Fixed bug with nabvar