Fix bug in output component.