Fix using negative index