correcting permissions