fixed mismatched delete