permissions bug