Fixes bug in DOM node query.