Teleport not working for AIPath when called from OnTargetReached()

I have a custom pathfinder set up and want it to teleport to a new location when it reaches the “door”. Unfortunately every time I try it teleports and then gets reset to the original position. Clicking on the door again makes him teleport if he is already at the door’s position. I have tried the current Pro version and the Pro Beta version and the issue is present in both cases.