Fixed bug for updating the versions