Fixed error adding event handlers to color picker.