Frame's ui corner, position changing randomly

Hello so i’ve been working on my game and for some reason theres this goofy issue where my frame is squared til you click on it twice
heres a video:
https://gyazo.com/540db032e99895fd2ce23db3866e471f
the first calculation

					local absSize = caddon.Size 
					local absSize2 = overlay.Size 
					if caddon:IsA("TextLabel") then
					local y = ((absSize.Y) + (absSize2.Y))- UDim.new(-0.029, 0)
						overlay.Size = UDim2.new(absSize2.X  + UDim.new(0.01, 0) , y + UDim.new(-0.2233, 0))

whenever the ui changes back to being cornered:

local absSize = overlay:FindFirstChild(tc).Size 
local absSize2 = overlay.Size 
local y = ((absSize.Y) - (absSize2.Y))- UDim.new(-0.029, 0)
overlay.Size = UDim2.new(absSize2.X - UDim.new(0.01, 0) , y + UDim.new(-0.2233, 0))