Bugfix file validation

Bugfix in sumDisplacements