fix format string check