fix arguments slicing in sub commands