Fixe a crash and handling of tabs in files improved