bug fix for colorPicker