delete view bug fix