fix a crash

Change-Id: I1ed7a27970f751ba73b986ad710caba772c497ff