Fixed deprecation warning for Rainbow