Quick hack to see if taking out the last color fixes the problem and it does.  Need a smarter encoding scheme.