Fixed creating a feature at the end of a sequence