template fix for childNodes