Removed a null pointer problem in the color Palette.