fixing stream monitor counter initialization