Attempt to get item number 4 of a list of length 0: [] , how can clear it