Fixed one more problem with empty sequence.