fixing permission issue