Ice Maker

I have a Samsung RF265ABPN refig and the Icemaker is putting too much water in the tray and the cubes are coming out connected. There was a piece foam that came out due to the Ice being too full and I think it held a sensor that might be whats controlling the water into the tray. there is a wire hanging with a sensor on it and I see where the wire fits into the foam piece and I see where the foam piece fits on the Ice tray but it looks like there is a clip missing that I can’t find.