fix bad sprintf