Fix bug with incorrect next release version