Fixed bug in building reduced-size networks