fix generator permissions