fix permission denied error