fixing delete on add