Fix content exception class. Fixes #569