the client's ip addr is now default value. Also fixed some undefined index