fix queue counter