Fix throwing exceptions.