tools: fixing set parameter to avoid duplicates