Fix bug in RainTPL 'loop' tag