Ensure dom element when matching selector.
Update dist.