Fix storage of current user in the template.