Fixed bounding box checks.