fixed: not saving privileges