This will not help to fix the problem. Please look at the following code. We need put the info_cmd = ..... in the begin of the branch. So it will be defined if anything wrong happen when we try to get the addr and ip with the functions.