Remove useless permissions