Here's one of the offending segments (specifically: `i < 0`)