Possible bug in treeMap?