Fix bug with lists.