Material Functions Won't append properly

Update: I think I discovered where exactly the problem is, you cannot append a float4 to a float4, so everything else is appending properly but it is just carrying the first color mask through