fixed queue.py