Fixed some issues with maximum extents.