Fixed a bug when reading toolbar prefs, unwanted buttons might be added