Fixed critical permission error