fix error with color passed as none