Fixing versioning api logic