Fixed a bug when you put the priority in the middle of a task