fixed queue count issue