Fix outstanding bug with permissions.