Fixed bug in formatter