fix colorpicker bug