better new grid max counting #fix