fixed bug in queue peek