Fixed issues with the formatter example