Here are some screenshots showing how the mindless attack status debuff overwrites the target’s special.
Before:
After:
Imo Lord Loki is working correctly here, as he is copying the target’s special as it is when cast. I don’t think this needs to be fixed as this seems like expected behavior and can be avoided by just being aware of this before casting Lord Loki.