Correcting permission problems