output bug fix