Fixed priority not saving bug