Exception fix in specialize