fixed static initialization crash bug

Change-Id: I2546905197f71c4486bc7df88dd71afc6c93254a