fix color comparison