more permissions bug fix