fixed permission glitch