When leashing many animals at one time leash won't affect some of them.
(The leash would be seen,though you won't be able to move the animal after you)
However,the bug disappears after double tapping the creature with the right mouse button with leash in hand.(the leash drops only after the second tap)
Note:if this happens,leash will stretch for miles if you go away from the animal.