Respawning

I got this code from (https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/RespawnPlayer/Blueprints/) and the code worked fine initially but after a teamperson added user interface it stopped working. The gamemode code dosnt apper to be being run at all and the cast to gamemode in the player bluepint is failing. Please Help.