bug fixes in versioning module