Fixed profile loading when the config published.

Fixed profile loading when the config published.