fix permission error