Fix color encoder