Fix filetypes not being filtered by structure (fixes #1292)