Fix bug with recovery scheduled tasks.