fix custom permissions file