Make filetype work properly.