Add missing semicolons and use dot notation for template access.