fix file queue bug