[OE-3987] bugfixes related to table versioning