fixed an annoying bug in color decoder.