Bugfix creation of next revision number