I don't see the bug even though I understand what you're saying.

When Rabid Bite is cast, then the previously friendly ally becomes an "opposing" ally for that one turn, hence attacking SA, and...