Replace element (fix bug td inside td)