patch for JAL-556 - more robust mapping of sequence to structure sequence with correc...