Create fix_permissions