Fixed a bug that collapsed duplicate versions.