Fixing randomly inserted html