The .hasMoreElements appears to eat all the elements