I'm using the same version sledger. It seems to be the <html> tag that's acting weird here because I tried a few name change varaitions and changing from none (which put's the code in the body) to <html> and it puts the code in the head section again insted of top.

In fact if I name a placeholder <html> I need to add or modify the code after adding the name for it to work. Inserting the code first and then adding the name and it sticks it in the head section.