fixed bug in color scheme logic