Fixed way filetypes were handled.