fixed counter max assert