fixing permissions