Fix photo sync to owncloud.