Revert "Exception fix in specialize"

This reverts commit 699b53874466d113ed392b0f0773fce6b56ab0bd.