fixing bug with colorpicker