fixed exception usage