Fixed off by one problem that was messing with cuboid volume calculations. (close #642)