bug fix-check empty selectors