Fixed bug in findFiles