Fixed problem with recent parentElement --> parentNode change