Fixed permissions bug.