fixing a permission issue