fixes #2089
Merge pull request #2090 from owncloud/fixing-2089-master

fixes #2089