Correcting permissions