fix exception type