Fixed queue manager bug