correction to cmd template grammar