Handling negative index