fix Permission denied issues