fix lastColor bug on color change