fix permission init