correcting format string bug