Remove unneeded permssions