bug in filetype