Fixed a dumb bug in error counting -- check_order now works.