Fix chrash on starup.

Change-Id: Ie8e684c33cbf85b72de55bbc559e456c91b559d1