[optimizer] fix to update URL when items are removed

fix #6