Fix exception build problem