Prevent firing colorChange event multiple times