fixed npe in oncreate