Fixed bug, was removing the </head> tag from the page