Make sure cancelled scheduled tasks will not run again if cancelled before