Fix bug in finding lexically lowest with -k,--key