Incorrect format specifiers produced bizzare output