Fix formatting of lists