Fixed an IndexOutOfBoundsException when verifying orders.