hasClass hotfix