fix permission error clear