fixed returned errors in Config.check()