Fix #192 improve filetype off