Permission changes bugfix