fix missing sprintf