fixing bad format string