Why formatting incorrecty?