fix bug of nil pointer
bin upgrade, bug fixed of panic nil pointer