fixed pointing to the wrong parentNode