Players Leave and Join but are still in server

Whenever a player comes close to my player it states that they joined my server but when they go away it says they left but they still are in my server. I also can’t see them in my vmenu unless they come close to me. I have both legacy and infinity onesync disabled.