Fix exceptions in the wrong namespace.