fixed warnings on Wformat