fix bug in custom command outputs