Fixed queueing problem when processing files