Simple obvious bugfix for DS-2246.
Merge pull request #726 from tuub/DS-2246

DS-2246: Simple obvious bugfix.

This PR is so simple and important that I merge it directly.