Fix exception in exceptional circumstances