fix notice "undefined index"

fix notice "undefined index"