fix formatting of nested list