Bug fix

Octave uses indices starting at 1 (rather then 0)