attempt to fix permission errors