fix dom querying