Pickup Body Bug (Gameplay Bug)

I went out hunting bandits with guards as part of the main quest (You know, at that horse place quite early on). Upon killing the bandits I then picked up the body of the bandit, Immediately the guards draw their swords on me and begin to attack me. I am convicted as a murderer.
WE KILLED THE BANDITS TOGETHER. COME ON!!

This probably shouldn’t be a thing?