A32NX skips last few waypoints and starts to fly directly to the airport

I’ve noticed that. Not sure about too many technicalities of flight planning but it skips the last few waypoints in STAR when I’m flying close to the runway and moving towards a farther waypoint on managed heading.