[JBTM-1813] Make sure next version is set correctly