Fixed getting extents