this patch breaks for some reason the whole ZMI delete feature.