Try to mix with HashMap and TreeMap, but still doesn't work