Fixing a bug with not sorting stratup tasks