fixed exclude config deprecation issue