fixing duplicates on queues