fix a crash

Change-Id: I416e2688280959a1e339234605af1f1dfafcfe15