fix max min problem in extents