Fixed the color picker

Previously, when changing the color, it would reset to the maximum value. Now the color picker works correctly!