Fix queue check
Merge pull request #6 from unikent/master

Fix queue check