Fixed an issue with how the sequence was being extracted