Fixed bounding box checks