I get this bug fairly frequently. I feel your pain.
The only work around I've found is to not rely on move to attack pathing. If you move next to them, so your character doesn't have to move before they attack, you shouldn't have any issues getting attacked.
Hopefully they'll fix this one soon.