Fix for rainbow-mode undefined on ubuntu