fixed exception warnings