add missed sprintf calls