fix has class for elements without class