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