Minor bug fix in _set_output_enabled