Potion related condition not working

I'm trying to make it's so when a player has 1 of 4 potions effects they will be added to the corresponding team however, despite locating the correct potion Id's. I seem unable to get it to work. The current code I'm trying to do is execute as @ a if entity @ a[nbt={active_effects:[{id:39}]}] run team join True_Immortal @ s It's a molded server so I thought maybe the molded effect was janky however its still doesn't work even with vanilla effects
Continue to help post