bugfix in global permissions