fix check is duplicate