List clears after each input