remove some useless permissions