diff --git a/seahub/templates/libraries.html b/seahub/templates/libraries.html
index e5b3b3c27a..c7d0906135 100644
--- a/seahub/templates/libraries.html
+++ b/seahub/templates/libraries.html
@@ -235,7 +235,7 @@ app["pageOptions"] = {
groups.push({
'name': '{{group.group_name}}',
'id': '{{group.id}}',
- 'avatar': '{% grp_avatar grp.id 36 %}'
+ 'avatar': '{% grp_avatar group.id 36 %}'
});
{% endfor %}
return groups;
diff --git a/static/scripts/app/views/top-group-nav.js b/static/scripts/app/views/top-group-nav.js
index 4ab726b7d6..d85bb0e9ea 100644
--- a/static/scripts/app/views/top-group-nav.js
+++ b/static/scripts/app/views/top-group-nav.js
@@ -12,7 +12,7 @@ define([
popupTemplate: _.template($('#top-group-nav-tmpl').html()),
initialize: function() {
- var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups}));
+ var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups}));
this.$el.append(popup);
popup.css({'right': ($('#top-nav-grp').outerWidth() - popup.outerWidth())/6 * 5});
this.popup = popup;