Fixing up permissions