bug fixed if featureEnd is beyond end of sequence