Fixed Config deprecation warning.