Fix tabs in pref file and add new line on save pref.