Fix the problem of retriving all files