Fix list uniqueness bug