Fix bug on owncloud directory