Fixed return bug in queue_source