Some fix for app->config when construct