Fixed segv.

Change-Id: I81b8f1ce843c1002140649e5a92e0c0db1e9e3a6