Fixing bug loading config file