fix exception type inspection