fix loading of configuration