Fixed bug for onReady being caught in decorateConfig