Fix generation min/max flip
Better code re: memoryrange convergence