fix for crash when using smb path