Corrected issue when no places visited. (Check the list size)