fixed template bug in profile