fixed delete bugs

fixed delete bugs