fix bug when non-string param is needed for an Exception