Correctly filter by filetype.