deduplicate. fix #9