fixes issue #4 when three character colors are used