fix some config