delete and update fix