Switch to 0-indexing for hint handling code.