fix format string in exception