fix html dom calls