fix bug in _add_sequence that only returned last result