Fixed a bug on linux

Signed-off-by: zdd <zddhub@gmail.com>