Handle case when priority is set to a number