fixed invalid index in buildChangeDetails, fixes #1858
Merge pull request #1859 from mxab/master

fixed invalid index in buildChangeDetails, fixes #1858