Fixed broken FileType detection