Fix bug of tolerance range not replace.

Ig old color and new color was in tolerance than color was not
replaced. This bug Solved.