simplify fixing permissions