fix bug in net_build_data