Fix issues with using a config file