Possible bug with Maestra and Cloak of Shadows

When playing a deck with Maestra of the Masquerade, playing Cloak of Shadows will give Stealth to the original, non-Rogue hero, which will immediately change upon playing a Rogue card. Thus, the Stealth is not conferred onto your Rogue hero. Is this intentional, or should the “Stealth for 1 turn” effect remain on your current hero regardless of its class?