Bugfix for autoincrement versioning