Fix API level 8 exception

Change-Id: I08ed1f4d03b483c1693fe7992f9f76cd8cdf8254