Fix Template::parent