fix permission issue