Deleting activity adjusts repeat