fixed weird behavior with selec class