fixed permission errors