fix for unlimited

Signed-off-by: Zealot Ke <chzealot@gmail.com>