Bugfixing bounding box