This has been an issue since DOS1. I always thought it was some weird pathfinding issue. It still happens to me now and again with no invisibility.