Fix files priorities saving.