Fix relp template. It simply not working as variable used in it is not d...

...efined.