Revert "Possibly fixes owncloud/#298"

This reverts commit bb1a799c84f184be2c221e406b1be9fb69a0d05f.