Fix bug with formatting