fix bug when opening a WebDAV share (hang)