SequentialDiscreteFT out of bounds fix