fixed color change bug