Prevent access to a negative index