Fix "TypeError: not enough arguments for format string"