Fixed the most stupid mistake in the world in minimizing bounding box