Fixed a small bug in compoundshape and Box.