Fix ...parentNode.classList is undefined bug