bugfix

avoid nil point error