Fixed errors in filetype reading