Fixed calling of format method