Fixing deployment permissions.