Delete log bug fix