some more sprintf fixes