Removes the loop in the template