Without this `i--`, the loop was skipping the following element to the searched opcode.