Could not render because of incorrect argument for querySelectorAll