Fix issue in deleteView