Fixed a small call bug when switching to CLI