Fixing bug when loading config values