Fix unable to throw Exception