fixed queue print bug