Not really possible to fix this bug.
When you cast a spell/buff/anything, the damage/spellpower/whatever is determined from the time your cast finishes. So this means that, for example, if you cast Rejuvenation on a player with a trinket spellpower proc up, the Rejuvenation HoT on the target will have the extra spellpower for its full duration, regardless if your spellpower trinket wears off mid duration. Similarly, if you're a hunter and you cast Serpent Sting with an AP buff up, the Serpent Sting will tick for the buffed AP amount for its entire duration regardless if the AP buff wears off mid duration. Likewise, if you cast Molten Armor with a buff that improves it's spellpower, you'll keep the improved spellpower for Molten Armor's entire duration, regardless if the Spellpower increasing stat wears off.
Just a small tip for those who don't already know.