Removing extra line in list.