small fix to ntuple code