- fixed writing of lists