fix erro replacing html content