fix sys_g_msg crash

Signed-off-by: xiehuc <xiehuc@gmail.com>