fixed infinite loop for network shares