fixed the issue with the queue priority being incorrect