Corrected templatetags errors