fixed bounding box function
Merge pull request #1 from wanderer/master

fixed bounding box function