fixed innerHTML append issue