increment version, handle bad sortkeys for events