Fixing permission mapping