fixed bug in format string