fix exception type.