fixed ajax render error after html changes