Fix update code that's currently not working properly for various providers.