Bug fix. When writing content in response the HTML tag wasn't closing