Fixed issue with filetypes not being detected