Fix order size check