Remove extra div in loop templates