Problem: My collection service is not detecting my rbxevent

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CollectionService = game:GetService("CollectionService")

local Contents = ReplicatedStorage.Contents
local UIS = Contents.UIS

for _, button: TextButton in CollectionService:GetTagged("Button") do
	local module = UIS:FindFirstChild(button.Name)
	
	button.MouseButton1Click:Connect(function()		
		assert(module, button.Name.." Doesn't exist in"..UIS.Name.."("..UIS.ClassName..") Warn.")
		print(module.Name)
	end)
end