fix counter getting confused on resetting ids