Fix future exception check