Was recently rendered node does not work

Sorry, the function does work in 4.27, but for some reason when my game screen widget that shows my character’s health and stuff is added to the viewport, it stops working. I can’t figure out why this is happening because the WasRecentlyRender function seems to check the World for time passed. Which shouldn’t have anything to with a widget.