fixed exception formatting