added control to no update network_program if it is null.