Fixed bug in clean-sequence when passed vector