Avoid setting filetype twice.