fixing bug in config loader