fixed bug in loading config from external