minmax intersecting bugs fixed..