fixes an issue causing the config to be reset