Exception should be correctly set