fix rainbow-mode