Fixed the assertion failure on formatting.