fix bug in net_build_data
Merge pull request #1 from gonzoj/master

fix bug in net_build_data