Fixing permission table