It was because of <header> in the custom HTML. Better to have only <body> … HTML structure, without <body> </body>
<header>
<body>
<body> </body>