fix logic filtering hidden files