fixed getQueueCount/ClearQueue methods