fix permission when confirm the application