Fix regression in ondeletehead