Change tabs to spaces, and also made sure that the intervals are added when restoring a deleted task, or removed when deleting tasks