Fixed bug in group permissions.