clean addr assign, add missing memset