fix loading config file