fix deprecation warnings for ribbon