fix for 'Maximum call stack size exceeded' error

Signed-off-by: zensh <admin@zensh.com>
Signed-off-by: Yan Qing <admin@zensh.com>