bug fix in cat