fix for 'Maximum call stack size exceeded' error

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