Fix namespace on exceptions