Fixed bug in color coding.