Fix bug with tasks trying to be sorted on launch