fix https://github.com/owncloud/documents/issues/70