small bug fix in --keep / --extract merge