fix deprecation warning about Config