Fix duplicate versions issue