Add  a bit of fault tolerance to the color legend