fix the bug when you change selector