Issue when teleporting camera + character

I have a simple blueprint where every time you complete a room a new one is created, in this one

there are 2 arrows, the left one is CharacterDestination and the right one CameraDestination. (top-down camera by the way)

So after the room is created this function runs inside the character blueprint to teleport the character to the new room

. The first part that teleports the character runs fine (tested this) but the second part that sets the camera location has an issue which I can’t figure out. It’s supposed to move the camera to the new location without changing the height.

So I’ve found the problem. In my character blueprint I have 2 variables (LockVertical-LockHorizontal) which are on event tick and if one of them is true it locks the camera on the corresponding axis and if both are false the camera follows the character as seen here.

For some reason after the teleport function runs for a single frame it bypasses the branch (even though i made both variables false by default and disabled anything that changes them to test if this was the issue) so thats why the camera didn’t appear in the right place. I simply set a boolean just before the branch in this image which changes half second after the teleport happens just to avoid the issue and now it works fine.