fixing template for repeater