Fixing the issues related to permissions.