Fixed bug in NAS when multiple hosts are used