fix bug with formatting