fix crash under server

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