fixed typo in buildnetwork.R