The case index < 0 should never happen, if it does that means that a coder made a mistake somewhere.