fixed double printing of queue table