fixed incorrect deduction of order from non-overlapping boxes (thanks Slime0). fixed #2