Fixes owncloud/#327.