fix format of exception