fixed NULL pubaddr error