add asserts for broken dom stuff
fix element tracking due to dom bug