Fix template bug introduced by private nodehandle