Fix construction of exception base