Fix exception conditional