fix sprintf format strings