Fix exceptions namespaces