Fixed an issue that can cause html to break