Fix filetype filtering