added correction for overlapping reference/alternate sequences