permissions bugfix