Fixed bug with formatting output.