Fix class permissions