Bug fix in the preferences panel (clicking cancel would rewrite all
values even if nothing had changed)