fix warning
fixed npe