fixed InvalidOperationException when loading repo properties