fix the cat exception bug