Fixed scoping on exception name