Fixing bug on findFiles