Fixed unique checking

Affected like count and visit count mechanism