Minor bugfix regarding nansum