Changed <control> to <loop> in template to avoid deprecation notices;
Fixed a typo