fix a typo and use new style string formatting