fix permission when cancelling