Avoiding error when no color is present