Without seeing your entire, actual code -- Seriously, why do people
never post it?! If you don't know
what the problem is, why do you think you
do know
where it is?
-- offhand I'd say a potential problem is that you're not stopping the loop after you handle a buff, so even if you find one buff you want to show, you keep going, and possibly find another buff you don't want to show, causing the frame to be hidden. If you only want to show one buff at a time, add a "break" statement in there; if you want to show multiple buffs at a time, you need more than one frame, or at least more than one texture, but based on the snippet you posted it looks like you only have one.