Fixed bug where a negitive queue size would be invalid