Fixed issue with group permissions, closes #764