fix ui issue when deleting a one-to-X element