fixed a bug in color prefs