fix bug that only one bind for each element works