fixed some logic in display color mapping