fix bug switch color after turning on again