Fix name collision auto-triggering widget function