fix bug of command calling again