#35 fix for negative index