fix TypeError: not enough arguments for format string