Fixed fatal error when throwing exception (2)