Fix DOM queries.