firing status change event right after status is changed

Fix for queued-queries counter is getting set to -1.
Where is this set? I don't see it anywhere.