add missing end <command> tag