fix a bug: dot's color when change the brush