Fixed incorrect ordering of params when getting a queue reference