Fixed bug with html element injection