irr max count fix