fix bug of binding DOM selectors