Fix wrong condition for --keep feature