fixed bug with not enough files being searched