fix double output in infoCommand