Fixed update_network bug