Fix bug in list parsing.