fixed delete_if