Fix list parsing