Fix namespace of exceptions.