More fixes to permissions