Minor bug fix on group permissions