I tried that, but I'm still getting the error, I'm also making sure that I cant go over the limit by having NewDuration be set to whatever *minus* 1, not sure if SampleIndex follows, but as evident by the fix not working, that doesn't seem to be the case either, was worth a shot though.