Fix weird permissions values