Fixed problem where wrong version is returned after doing an update via

the API.