bugfix of the buildCmdCond