fix load config from file