Closing a tag that was breaking the output