This depends. If you are on the latest build and you then changed the agent on an existing library and refreshed the metadata that should work.
If you already had a library that had this issue then it will get fixed when your scheduled tasks run, specifically the one that does the database backup.