Create new sheet in active submap


I want to make a button that creates a new sheet in the active submap with a predifined titleblock.
I’ve made the following scheme…somehow it doesn’t work.

Does anyone know why?..I have a feeling that the get Revitselection node is very buggy

The nodes at the bottom of the scheme are getting the active sheet and passing its name to the submap of the just created sheet, though they aren’t always passing the active sheet and most of the time empty. Is there another node that does the same thing? I’ve been searching for an hour and can’t seem to find what Im looking for.