fixes permission denied error